package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.controller.form.DeleteStaff;
import com.woniu.model.BmsDept;
import com.woniu.model.BmsPermission;
import com.woniu.model.BmsRole;
import com.woniu.model.BmsUser;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Kevin Kwok
 * @since 2021-04-13
 */
public interface IBmsUserService extends IService<BmsUser> {
    BmsUser queryUserByTel(String tel);
    BmsUser queryUserByName(String name);
    List<BmsPermission>queryUserPermission(BmsUser bmsUser);
    List<BmsPermission>queryAllUserPermission(BmsUser bmsUser);

    List<BmsUser> queryAllUser();
    List<BmsRole> queryAllRole();
    List<BmsDept> queryAllDept();

    int addNewUser(BmsUser bmsUser);

    int deleteStaff(DeleteStaff staff);

}
